package zsc.ruanc.practicaltraining.model.domain;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

@Data
public class updatePasswordVo {

    @NotBlank(message = "oldPassword不能为空")
    @Length(message = "密码要大于6位", min = 6)
    private String oldPassword;

    @NotBlank(message = "newPassword不能为空")
    @Length(message = "密码要大于6位", min = 6)
    private String newPassword;

}
